var adc = require('adc');

var vol1 = adc.open({
  id: 'ADC0',
  success: function() {
    console.log('adc: open adc1 success')
  },
  fail: function() {
    console.log('adc: open adc1 failed')
  }
});


setInterval(function() {
    console.log('adc: adc1 value ' + vol1.readValue())
}, 2000);

